import React,{Component} from 'react';
import {connect} from 'react-redux'
import Untils from '../untils/untils'
import '../css/login.css'
class Login extends Component{
    render(){
        return(
            <div className="content22">
                {/*<p className="fhbtn"><a href="mydoc_m.html"></a></p>*/}
                <h1></h1>
                <div className="login-box">
                    <p className="lsolid"></p>
                    <div className="login">
                        <a href="login_m.html">登录</a>
                        <span></span>
                        <a href="reg_m.html">注册</a>
                    </div>
                    <p className="rsolid"></p>
                </div>
                <ul>
                    <li className="lifirst">
                        <input type="text" value=""/>
                        <span>帐号</span>
                    </li>
                    <li>
                        <input type="text" value=""/>
                        <span>密码</span>
                    </li>
                </ul>
                <div className="footbox">
                    <input type="button" value="登 录" className="login-btn" onClick={this.login.bind(this)}/>
                    <a href="javascript:;" className="tishi">忘记密码？</a>
                </div>
            </div>
        )
    }

    login(){
                Untils.setLocalStorage('user',1);
                 this.props.history.push('/do');


    }

}
export default  connect(
    null,
    (dispatch)=>dispatch({type:'HIDE_HEAD'})
)(Login)